package com.design.interpreter;

import lombok.AllArgsConstructor;
import lombok.Data;

@AllArgsConstructor
@Data
public class Devide extends AbstractExpression{
    public Devide(AbstractExpression left,AbstractExpression right) {
        this.left=left;
        this.right=right;
    }

    @Override
    public int interpreter(Context context) {
        return right.interpreter(context)/ left.interpreter(context);
    }
}
